package com.project.dao;

import com.project.bean.NewsEntity;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface INewsDao extends PagingAndSortingRepository<NewsEntity,String> {
    public List<NewsEntity> findAll();
    public List<NewsEntity> findAllByInfo(String info);
    public List<NewsEntity> findAllByType(String type);
}
